<?php

/**
 * 接口 设置各种接口
 */
if (!class_exists('MABOU_Admin_Interface')) {
    class MABOU_Admin_Interface
    {

        //选项
        public static $option = "magick_bounty_option";

        //任务表
        public static $table_task_name = "npcink_mabou_task";

        //完成表
        public static $table_submit_name = "npcink_mabou_submit";

        //运行
        public static function run()
        {
            //设置
            require_once plugin_dir_path(__FILE__) . 'task.php';
            MABOU_Admin_Interface_Task::run();
        }
    } //end
}

//返回使用标准的错误格式
/**
 * wp_send_json_success
 * wp_send_json_error
 * data{
 *      'data' => '传值',
 *      'message' => '错误信息',
 *      'error' => '错误信息',
 *      'msg' => '错误信息',
 * }
 */
